<?php

class Pipes_Request
{
	private $_data = array();
	
	public function __construct() {
		if (isset($_GET)) {
			foreach ($_GET as $key => $value) {
				$this->_data[$key] = $value;
			}
		}
		if (isset($_POST)) {
			foreach ($_POST as $key => $value) {
				$this->_data[$key] = $value;
			}
		}
	}
	
	public function __get($key) 
	{
		return $this->_data[$key];
	}
}
